Hydroxypropyl helps increase the water solubility of HPMC, making it easier to incorporate into formulations and ensuring better bioavailability of the active ingredients. Methyl groups, on the other hand, affect the viscosity and film-forming properties of HPMC, which can control the texture and appearance of the final product.